/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at 2020-7-20 13:59:25
 */

package com.pactera.jep.service.yapin.eval.model.model;

import com.pactera.jep.web.entity.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Digits;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.*;
import java.math.BigDecimal;

import com.pactera.jep.commons.DateUtils;
import com.pactera.jep.entity.PO;

/**
 * 房屋估值模型基本信息实体类
 * @Author YourName
 * @Date 2020-7-20 13:59:25
 */
@ApiModel(value = "ValEvalModel" , description = "房屋估值模型基本信息")
@Entity
@Table(name = "ap_val_eval_model")
public class ValEvalModel implements PO {

    @ApiModelProperty("估值模型信息ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 32, message = "估值模型信息ID长度最多32位")
    @Column(name = "MODEL_ID")
    private String modelId;

    @ApiModelProperty("估值模型编号")
    @Length(max = 40, message = "估值模型编号长度最多40位")
    @Column(name = "MODEL_NO")
    private String modelNo;

    @ApiModelProperty("估值模型适用省份")
    @Length(max = 20, message = "估值模型适用省份长度最多20位")
    @Column(name = "PROVINCE_CD")
    private String provinceCd;

    @ApiModelProperty("估值模型适用城市")
    @Length(max = 20, message = "估值模型适用城市长度最多20位")
    @Column(name = "CITY_CD")
    private String cityCd;

    @ApiModelProperty("估值模型适用区县")
    @Length(max = 20, message = "估值模型适用区县长度最多20位")
    @Column(name = "DISTRICT_CD")
    private String districtCd;

    @ApiModelProperty("估值模型类型")
    @Length(max = 20, message = "估值模型类型长度最多20位")
    @Column(name = "MODEL_TP_CD")
    private String modelTpCd;

    @ApiModelProperty("估值算法")
    @Length(max = 20, message = "估值算法长度最多20位")
    @Column(name = "EVAL_ALGORITHM_CD")
    private String evalAlgorithmCd;

    @ApiModelProperty("是否有效")
    @Length(max = 20, message = "是否有效长度最多20位")
    @Column(name = "VALID_FLG")
    private String validFlg;

    @ApiModelProperty("模型名称")
    @Length(max = 100, message = "模型名称长度最多100位")
    @Column(name = "MODEL_NM")
    private String modelNm;

    @ApiModelProperty("模型简介")
    @Length(max = 255, message = "模型简介长度最多255位")
    @Column(name = "MODEL_DSC")
    private String modelDsc;

    @ApiModelProperty("系统创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYS_CREATE_TIME")
    private Date sysCreateTime;

    @ApiModelProperty("系统更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "SYS_UPDATE_TIME")
    private Date sysUpdateTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "MODEL_VERSION")
    private Integer modelVersion;

    public String getModelId(){
        return modelId;
    }

    public void setModelId(String modelId){
        this.modelId = modelId;
    }
    public String getModelNo(){
        return modelNo;
    }

    public void setModelNo(String modelNo){
        this.modelNo = modelNo;
    }
    public String getProvinceCd(){
        return provinceCd;
    }

    public void setProvinceCd(String provinceCd){
        this.provinceCd = provinceCd;
    }
    public String getCityCd(){
        return cityCd;
    }

    public void setCityCd(String cityCd){
        this.cityCd = cityCd;
    }
    public String getDistrictCd(){
        return districtCd;
    }

    public void setDistrictCd(String districtCd){
        this.districtCd = districtCd;
    }
    public String getModelTpCd(){
        return modelTpCd;
    }

    public void setModelTpCd(String modelTpCd){
        this.modelTpCd = modelTpCd;
    }
    public String getEvalAlgorithmCd(){
        return evalAlgorithmCd;
    }

    public void setEvalAlgorithmCd(String evalAlgorithmCd){
        this.evalAlgorithmCd = evalAlgorithmCd;
    }
    public String getValidFlg(){
        return validFlg;
    }

    public void setValidFlg(String validFlg){
        this.validFlg = validFlg;
    }
    public String getModelNm(){
        return modelNm;
    }

    public void setModelNm(String modelNm){
        this.modelNm = modelNm;
    }
    public String getModelDsc(){
        return modelDsc;
    }

    public void setModelDsc(String modelDsc){
        this.modelDsc = modelDsc;
    }
    public Date getSysCreateTime(){
        return sysCreateTime;
    }

    public void setSysCreateTime(Date sysCreateTime){
        this.sysCreateTime = sysCreateTime;
    }
    public Date getSysUpdateTime(){
        return sysUpdateTime;
    }

    public void setSysUpdateTime(Date sysUpdateTime){
        this.sysUpdateTime = sysUpdateTime;
    }
    public Integer getModelVersion(){
        return modelVersion;
    }

    public void setModelVersion(Integer modelVersion){
        this.modelVersion = modelVersion;
    }
}

